package org.siqisource.webstart.core.utils.condition;

import java.util.List;

public class SimpleCondition extends Condition {

	/**
	 * <p>
	 * Title: and某属�?某�?
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param propertyName
	 *            属�?�?
	 * @param value
	 *            属�?�?
	 */
	public void andEqual(String propertyName, Object value) {
		this.singleValue("and", "", propertyName, "=", value, "");
	}

	/**
	 * <p>
	 * Title: and某属�?某�?
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param propertyName
	 *            属�?�?
	 * @param value
	 *            属�?�?
	 */
	public void andNotEqual(String propertyName, Object value) {
		this.singleValue("and", "", propertyName, "<>", value, "");
	}

	/**
	 * <p>
	 * Title: and某属�?某�?
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param propertyName
	 *            属�?�?
	 * @param value
	 *            属�?�?
	 */
	public void andGreater(String propertyName, Object value) {
		this.singleValue("and", "", propertyName, ">", value, "");
	}

	/**
	 * <p>
	 * Title: and某属�?某�?
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param propertyName
	 *            属�?�?
	 * @param value
	 *            属�?�?
	 */
	public void andNoLess(String propertyName, Object value) {
		this.singleValue("and", "", propertyName, ">=", value, "");
	}

	/**
	 * <p>
	 * Title: and某属�?某�?
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param propertyName
	 *            属�?�?
	 * @param value
	 *            属�?�?
	 */
	public void andLess(String propertyName, Object value) {
		this.singleValue("and", "", propertyName, "<", value, "");
	}

	/**
	 * <p>
	 * Title: and某属�?某�?
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param propertyName
	 *            属�?�?
	 * @param value
	 *            属�?�?
	 */
	public void andNoGreater(String propertyName, Object value) {
		this.singleValue("and", "", propertyName, "<=", value, "");
	}

	/**
	 * <p>
	 * Title: and某属性in某些�?
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param propertyName
	 *            属�?�?
	 * @param value
	 *            属�?�?
	 */
	public void andIn(String propertyName, List<String> value) {
		this.singleValue("and", "", propertyName, "in", value, "");
	}

	/**
	 * <p>
	 * Title: and某属性like %某�?%
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param propertyName
	 *            属�?�?
	 * @param value
	 *            属�?�?
	 */
	public void andLike(String propertyName, Object value) {
		this.singleValue("and", "", propertyName, "like", "%" + value + "%", "");
	}
	

	/**
	 * <p>
	 * Title: and非空�?
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param propertyName
	 *            属�?�?
	 * @param value
	 *            属�?�?
	 */
	public void andIsNotNull(String propertyName, String value) {
		this.singleValue("and", "", propertyName, "is not null", "", "");
	}

	/**
	 * <p>
	 * Title: and是空�?
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param propertyName
	 *            属�?�?
	 * @param value
	 *            属�?�?
	 */
	public void andIsNull(String propertyName, String value) {
		this.singleValue("and", "", propertyName, "is null", "", "");
	}

}
